home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-04-28 | 1.5 KB | 41 lines | [TEXT/MPS ] |
- This folder contains the items necessary to utilize the Thread Manager with
- CFM-68k. Place ThreadLib in your "{MPW}Libraries:SharedLibraries:" folder.
- NuThreadsLib.slb goes in your "{SystemFolder}Extensions:" folder. For an
- example see the enclosed sample ThreadedSort. This sample application has been
- changed to be compiled for CFM-68k and PowerPC.
-
- Use this Threads.h file if you plan to use the Thread Manager with CFM-68k. This
- header file has been updated to supply the Thread Manager with UniversalProcPtrs
- instead of ProcPtrs. This header file is a prerelease version and hasn't had
- extensive testing. It should be completely compatible with both classic 68k
- and PowerPC builds.
-
- A caveat: Current source will need to be modified if CFM-68k support is required.
-
- An example of the type of changes necessary appear below. It is a snippit of code
- from SortPictThreads.cp, a Thread Manager Example program. These changes are necessary
- because CFM-68k requires the use of UniversalProcPtrs and Routine Descriptors and Classic
- 68k and PowerPC don't.
-
- #if defined(__CFM68K__)
-
- errWhatErr = NewThread( kCooperativeThread,
- ( ThreadEntryProcPtr )NewThreadEntryProc( SortPictsThreadEntry ),
- ( void* )this,
- 20000,
- kCreateIfNeeded,
- ( void** )nil,
- &tempThreadInfo );
-
- #else
-
- errWhatErr = NewThread( kCooperativeThread,
- ( ThreadEntryProcPtr )SortPictsThreadEntry,
- ( void* )this,
- 20000,
- kCreateIfNeeded,
- ( void** )nil,
- &tempThreadInfo );
-
- #endif
-